<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>

<div class="list" id="articleAside">
	<p>
		<s:text name="aside.articleManagement" />
	</p>
	<ul>


		<!-- common actions -->
		<li><s:a href="showAllArticles?">
				<s:text name="aside.allArticles" />
			</s:a></li>



		<s:if test="#session.user.role > 1">
			<!-- administrator-only actions -->

			<li><s:a href="writeNewArticle?">
					<s:text name="aside.writeArticle" />
				</s:a></li>

			<li><s:a href="deleteArticle?">
					<s:text name="aside.deleteArticle" />
				</s:a></li>

			<li><s:a href="findXMLArticles?">
					<s:text name="aside.findXMLArticle" />
				</s:a></li>
		</s:if>



		<s:else>
			<!-- user-only actions -->
		</s:else>
	</ul>
</div>